package com.hs.jhzd.repository;

import com.hs.jhzd.entity.YlFyjhxxbEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface YlFyjhxxbRepository extends JpaRepository<YlFyjhxxbEntity, String> {
    @Query("select y from YlFyjhxxbEntity y where y.rybh = ?1  and y.zlsj BETWEEN ?2 and ?3")
    public List<YlFyjhxxbEntity> findByrybh(String rybh, Date startTime, Date endTime);


    Optional<YlFyjhxxbEntity> findByUuid(String s);
}
